/*
 * File name:   reos_rc.c
 * Description: ReOS real-time operating system resource file.
 *              This file is automatically generated.
 *              Do not modify!
 * Date:        Wed Jan 29 20:58:56 MSK 2014
 */

#include "reos.h"

	/* EXTENDED TASK – HighPriorityTask */
	ReOS_U8_t HighPriorityTaskSTK[64];
	void HighPriorityTaskFNC(void) __attribute__ ((noreturn));
	ReOS_PID_t HighPriorityTaskPID;

   ReOS_TCB_t HighPriorityTaskTCB = {
        &HighPriorityTaskSTK[64 - 1],    // Pointer to the task stack top
        &HighPriorityTaskFNC,                 // Pointer to the task function
        &HighPriorityTaskPID,                 // Process ID
        1,                     // Task initial priority
   };
	/* EXTENDED TASK – MediumPriorityTask */
	ReOS_U8_t MediumPriorityTaskSTK[64];
	void MediumPriorityTaskFNC(void) __attribute__ ((noreturn));
	ReOS_PID_t MediumPriorityTaskPID;

   ReOS_TCB_t MediumPriorityTaskTCB = {
        &MediumPriorityTaskSTK[64 - 1],    // Pointer to the task stack top
        &MediumPriorityTaskFNC,                 // Pointer to the task function
        &MediumPriorityTaskPID,                 // Process ID
        2,                     // Task initial priority
   };
	/* EXTENDED TASK – LowPriorityTask */
	ReOS_U8_t LowPriorityTaskSTK[64];
	void LowPriorityTaskFNC(void) __attribute__ ((noreturn));
	ReOS_PID_t LowPriorityTaskPID;

   ReOS_TCB_t LowPriorityTaskTCB = {
        &LowPriorityTaskSTK[64 - 1],    // Pointer to the task stack top
        &LowPriorityTaskFNC,                 // Pointer to the task function
        &LowPriorityTaskPID,                 // Process ID
        3,                     // Task initial priority
   };

    ReOS_EVT_t  Evt1;
    ReOS_EVT_t  Evt2;
    ReOS_EVT_t  Evt3;

    ReOS_MSG_t  Msg1;ReOS_MSG_t  Msg2;ReOS_MSG_t  Msg3;
